package com.vhall.component.entity.goods;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商品表
 *
 * @TableName goods
 */
@TableName(value = "goods")
@Data
public class GoodsEntity implements Serializable {
    /**
     * 商品ID
     */
    @TableId(value = "bg_id", type = IdType.AUTO)
    private Integer bgId;

    /**
     * 操作人ID
     */
    @TableField(value = "account_id")
    private Integer accountId;

    /**
     * 管理员ID
     */
    @TableField(value = "admin_id")
    private Integer adminId;

    /**
     * 商品名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 商品标签
     */
    @TableField(value = "goods_tag")
    private String goodsTag;

    /**
     * 商品链接-h5
     */
    @TableField(value = "goods_url")
    private String goodsUrl;

    /**
     * 商品链接-android
     */
    @TableField(value = "goods_url_android")
    private String goodsUrlAndroid;

    /**
     * 商品链接-ios
     */
    @TableField(value = "goods_url_ios")
    private String goodsUrlIos;

    /**
     * 商品按钮文字
     */
    @TableField(value = "product_button_text")
    private String productButtonText;

    /**
     * 商品图片
     */
    @TableField(value = "pic")
    private String pic;

    /**
     * 商品状态;-1=删除 1=正常
     */
    @TableField(value = "goods_status")
    private Integer goodsStatus;

    /**
     * 商品上下架状态;0=下架 1=上架
     */
    @TableField(value = "load_or_unload")
    private Integer loadOrUnload;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private LocalDateTime updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}